#ifndef CONFIGDIALOG_H
#define CONFIGDIALOG_H

#include "stdafx.h"
#include <QDialog>
#include "ui_serialportconfiguration.h"
#include "qextserialport.h"

class ConfigDialog : public QDialog
{
	Q_OBJECT

public:
	ConfigDialog(QWidget * parent = 0, Qt::WindowFlags f = 0);
	~ConfigDialog();

private:
	Ui::serialPortConfiguration ui;
	PortSettings portSettings;
	QSettings* settings;

public:
	PortSettings getPortSettings();
	QTextCodec* getCodecs() const;
	void init();

private slots:
	void slotValidateConfiguration();
};

#endif // CONFIGDIALOG_H
